package log;

public class SimpleLogger implements Logger {

	private final int logLevel;

	public SimpleLogger() {this(Integer.MIN_VALUE);}
	public SimpleLogger(int logLevel) {
		this.logLevel = logLevel;
	}

	@Override
	public void log(String text) {
		System.out.println(text);
	}

	@Override
	public void log(int level, String text) {
		if (level > logLevel) this.log(text);
	}

}
